#
# Makefile for LOMBOTECH sdc host controller drivers
#

ifeq ($(CONFIG_ARCH_LOMBO_N9V1), y)
MMC_CSP_PLATFORM := n9v1
obj-y += sdc.o
else ifeq ($(CONFIG_ARCH_LOMBO_N9V3), y)
MMC_CSP_PLATFORM := n9v1
obj-y += sdc.o
else
MMC_CSP_PLATFORM := n7v1
obj-y += sdc_n7.o
endif

SOURCE := $(srctree)/$(src)/csp/$(MMC_CSP_PLATFORM)/sdc_csp.c

ifneq ($(wildcard $(SOURCE)), )
obj-y += csp/$(MMC_CSP_PLATFORM)/
else
obj-y += liblombo_sdc.o
$(obj)/liblombo_sdc.o: $(src)/csp/$(MMC_CSP_PLATFORM)/liblombo_sdc
	cp $< $@
endif

#ccflags-y := -DDEBUG
